package com.example.navigationdemo.base

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment

abstract class BaseFragment : Fragment() {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        var inflate = inflater.inflate(getLayoutId(), container, false)
        initView(inflate)
        return inflate;
    }

    abstract fun initView(rootView: View)

    abstract fun getLayoutId(): Int
}